		<div class="ui-portlet">
			{{template wxes/_user_wxes}}
			<ol class="breadcrumb">
			  <li><a href="/users/index"><i class="fa fa-home"></i>&nbsp;&nbsp;个人中心</a></li>
			  <li class="active">优惠活动列表</li>
			</ol>
		</div>        
       <hr>
       <div class="mb10">
       		<a class="btn btn-primary" href="{{$this->Html->url(array('action'=>'add'))}}">新增优惠活动</a>
       		<a class="btn btn-primary" href="{{$this->Html->url('/user_cates/mine?model=WxPromotion')}}">优惠活动分类</a>
       </div>
       <div class=" ui-portlet">
       <div class="row">
       {{loop $datalist $item}}
       	<div class="col-md-4">
       		<div class="appmsg">
	       		<div class="appmsg_content">
	       		<h4><a href="{{$this->Html->url('/wx_promotions/view/'.$item['WxPromotion']['id'])}}" target="_blank">{{$item['WxPromotion']['name']}}</a></h4>
	       		<p>{{$item['WxPromotion']['start_time']}} ~ {{$item['WxPromotion']['end_time']}}</p>
	       		<div class="cover">{{$this->Html->image($item['WxPromotion']['coverimg'])}}</div>
	       		<p class="appmsg_desc">{{$item['WxPromotion']['summary']}}</p>
	       		</div>
	       		<div class="appmsg_opr clearfix">
	       			{{$this->Html->link('<i data-toggle="tooltip" data-placement="top" title="'.__('Edit').'" class="fa fa-edit"></i>', array('controller'=>'wx_promotions','action' => 'edit', $item['WxPromotion']['id']),array('class'=>'col-xs-4 opr-edit','escape'=>false))}}
	       			
	       			
	       			
	       			<a href="{{$this->Html->url('/wx_promotions/ip_stat/'.$item['WxPromotion']['id'])}}" class="col-xs-4  opr-edit"><i data-toggle="tooltip" data-placement="top" 
	       			 title="{{__('Delete')}}" class="glyphicon glyphicon-stats"></i></a>
	       			 
	       			<a href="javascript:void(0)" class="col-xs-4 delete-pop" data-container="body" data-content="确定删除此素材？"><i data-toggle="tooltip" data-placement="top" 
	       			 title="{{__('Delete')}}" class="fa fa-trash"></i></a>
	       			 
	       			 <!-- {{$this->Html->link('', array('controller'=>'wx_promotions','action' => 'delete', $item['WxPromotion']['id']),array('class'=>'col-xs-6','escape'=>false))}}
	       			  -->
	       		</div>
       		</div>
       	</div>
  		{{/loop}}
    	</div><!-- end row -->
    	</div><!-- end ui-portlet -->